package com.wancaijinfu.parse;


import org.json.JSONException;
import org.json.JSONObject;

import com.wancaijinfu.javabean.Borrow;

public class BorrowParse  extends PostParse{

	@Override
	public Object parseSuccess(JSONObject object) throws JSONException {
		JSONObject newObj = object.getJSONObject("borrow");
		Borrow item = new Borrow();
		item.id = newObj.getString("id");
		item.account =  newObj.getDouble("account");
		item.name =  newObj.getString("name");
		item.time_limit =  newObj.getInt("time_limit");
		item.lowest_account =  newObj.getString("lowest_account");
		item.most_account =  newObj.getString("most_account");
		item.valid_time =  newObj.getString("verify_time3");
		item.status =  newObj.getString("status_cn");
		item.tender_times =  newObj.getString("tender_times");
		item.end_time =  newObj.getString("end_time");
		item.apr =  newObj.getDouble("apr");
		item.account_yes =  newObj.getDouble("account_yes");
		item.award =  newObj.getInt("award");		
		item.is_day = newObj.getInt("is_day");
		item.funds =  newObj.getDouble("funds");
		item.style =  newObj.getString("style_cn");
		item.part_account =  newObj.getDouble("part_account");
		return item;
	}
	
}
